<?php
    function sortTwo(array $a):array
    {
        $b=[];
        foreach($a as $one)
        {
            sort($one);
            $b[]=$one;
        }
        sort($b);
        return $b;
    }
